package com.lcdpg.lcdp.auth.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Set;

/**
 * @author admin
 * @version 1.0.0
 * @ClassName Role.java
 * @Description TODO
 * @createTime 2025年05月29日 16:20:00
 */
@Data
@TableName("roles")
public class Role {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private String name;

    @TableField(exist = false)
    private Set<Permission> permissions;
}
